package com.tyk.bookstore.back.payment.model.query;

import com.tyk.bookstore.back.payment.model.enume.ShopStatementType;
import com.tyk.bookstore.back.payment.model.enume.StatementNature;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author tyk
 * @description 书店流水
 */
@Data
@Schema(name = "ShopStatementAddQuery", description = "书店流水")
public class ShopStatementAddQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "来源主体标识")
    @NotNull
    @Min(value = 1)
    private Long otherSideIdentification;

    @Schema(description = "来源标识")
    @NotNull
    @Min(value = 1)
    private Long sourceIdentification;

    @Schema(description = "交易值")
    @NotNull
    private BigDecimal modification;

    @Schema(description = "交易性质[0收入,1指出]")
    @NotNull
    @Min(value = 1)
    private StatementNature nature;

    @Schema(description = "交易类型")
    @NotNull
    @Min(value = 1)
    private ShopStatementType type;

}
